<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
	prefix="tiles"%>

<rich:panel header="#{messages['partner.product.reject.acknowldegement']}">
	<h:panelGrid>
		<h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText>
	</h:panelGrid>

	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">

		<h:panelGroup>
			<h:outputLabel for="reason" value="#{messages['reason']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="reason"  styleClass="standardText" value="#{partnerProductApprovalBean.product.reason}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="name" value="#{messages['name']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="name"  styleClass="standardText" value="#{partnerProductApprovalBean.product.name}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="desc" value="#{messages['desc']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="desc" styleClass="standardText" value="#{partnerProductApprovalBean.product.desc}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="producttype" value="#{messages['product.type']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="producttype"  styleClass="standardText" value="#{partnerProductApprovalBean.product.productType.name}"></t:outputText>
		</h:panelGroup>
		
	
		<h:panelGroup>
			<h:outputLabel for="calcat" value="#{messages['calendar.category']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="calcat"  styleClass="standardText" value="#{partnerProductApprovalBean.product.calCat.name}"></t:outputText>
		</h:panelGroup>
	
		<h:panelGroup>
			<h:outputLabel for="avaibility" value="#{messages['avaibility']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="avaibility"  styleClass="standardText" value="#{partnerProductApprovalBean.product.avaibilityInt}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="peak" value="#{messages['super.peak.season.price']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="peak"  styleClass="standardText" value="#{partnerProductApprovalBean.product.superPeakPriceDbl}">
			</t:outputText>
		</h:panelGroup>
		
	
		<h:panelGroup>
			<h:outputLabel for="normal" value="#{messages['peak.season.price']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="normal"  styleClass="standardText" value="#{partnerProductApprovalBean.product.peakPriceDbl}">
			</t:outputText>
		</h:panelGroup>
		
	
		<h:panelGroup>
			<h:outputLabel for="normal1" value="#{messages['normal.season.price']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="normal1"  styleClass="standardText" value="#{partnerProductApprovalBean.product.normalPriceDbl}">
			</t:outputText>
		</h:panelGroup>
		
	    <h:panelGroup>
		    <h:outputLabel for="effectivedate" value="#{messages['effective.date']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="effectivedate"  styleClass="standardText" value="#{partnerProductApprovalBean.product.effectiveDate}">
			</t:outputText>
	    </h:panelGroup>
	
	    <h:panelGroup>
		    <h:outputLabel for="expirydate" value="#{messages['expiry.date']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="expirydate"  styleClass="standardText" value="#{partnerProductApprovalBean.product.expiryDate}">
			</t:outputText>
	    </h:panelGroup>
	    
	</t:panelGrid>
	<rich:spacer height="30"></rich:spacer>
	<t:panelGrid>
		<t:panelGroup>
   			<h:commandButton value="#{messages['acknowledge']}" styleClass="button" immediate="true" action="#{partnerProductApprovalBean.acknowledgeMessage}"></h:commandButton>
   		</t:panelGroup>
	</t:panelGrid>
	
</rich:panel>